<%@ page import="com.realtybaron.auction.Inquiry" %>
<%--
  Created by IntelliJ IDEA.
  User: marc
  Date: Feb 8, 2010
  Time: 11:28:16 AM
  THIS SOFTWARE IS COPYRIGHTED.  THE SOFTWARE MAY NOT BE COPIED REPRODUCED, TRANSLATED, OR REDUCED TO ANY ELECTRONIC
  MEDIUM OR MACHINE READABLE FORM WITHOUT THE PRIOR WRITTEN CONSENT OF SOCO TECHNOLOGIES.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>

<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<% Inquiry inquiry = Inquiry.class.cast(request.getAttribute("inquiry"));%>

<html>
<head>
  <title>View Inquiry</title>
  <link rel="stylesheet" type="text/css" href="<c:url value='style.css' />"/>
</head>
<body>
<h1>Auction Question</h1>

<div class="form">
  <form action="<c:url value='AnswerInquiry.htm' />" method="post">
    <input type="hidden" name="id" value="<%=inquiry.getId()%>"/>

    <div class="form_row">
      <div class="form_label">Question</div>
      <div class="form_value">
        <%= inquiry.getText() %>
      </div>
    </div>
    <div class="form_row">
      <div class="form_label">Response</div>
      <div class="form_value">
        <textarea rows="5" cols="40" name="text"></textarea>
      </div>
    </div>
    <div id="buttons">
      <input type="submit" value="Post Your Response"/>
    </div>
  </form>
</div>
</body>
</html>